﻿using FluentNHibernate.Mapping;
using CsharpTrainer.NHibernate3.Entities;

namespace CsharpTrainer.NHibernate3.Mapping
{
    public class CategoryMap : ClassMap<Category>
    {
        public CategoryMap()
        {
            Id(x => x.CategoryId, "CategoryId");
            Map(x => x.Name)
                .Length(50)
                .Not.Nullable();
        }
    }
}
